<aside class="lg-side">
    <div class="panel-heading tab-bg-dark-navy-blue okr-tab-head tab-right "></div>
    <div class="inbox-body mi-h8">
        <div class="row">
            <div class="col-lg-12">

                <section class="panel">
                    <div class="panel-heading">
                        成员信息
                    </div>
                    <div class="panel-body">
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">人员姓名</label>
                            <div class="col-sm-10">
                                <input type="text" disabled value="" autocomplete="off" certus-required id="empName"
                                    class="form-control" onkeyup="this.value=this.value.replace(/(^\s+)|(\s+$)/g,'');"
                                    placeholder="请输入员工姓名，自动检索" />
                                <input type="hidden" autocomplete="off" value="" id="empId" name="userId" />
                                <input type="hidden" autocomplete="off" value="" id="userName" name="userName" />
                            </div>
                        </div>


                        <div class="form-group customerForm" style="display:none;">
                            <label class="col-sm-2 control-label">角色</label>
                            <div class="col-sm-10 inputDivRole">
                                <!--<select class="form-control">-->
                                <!--<option>请选择</option>-->
                                <!--</select>-->
                                <input type="text" value="" readonly onfocus="this.blur()" placeholder="请从下方勾选您所需角色权限" autocomplete="off" class="slebox1 form-control" id="roleInputId"
                                    certus-required />
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">角色</label>
                            <div class="col-sm-10 role-list">
                                <div class="row">
                                    <div class="col-sm-3" style="line-height:normal;" ng-repeat="x in roles"
                                        ng-init="roleId=x.roleId">
                                        <div class="checkbox">
                                            <label>
                                                <input type="checkbox" ng-model="$parent.role[roleId]"
                                                    ng-click="roleSelectedChange($event,$parent.role[roleId],x.roleName)"
                                                    ng-true-value="true" ng-false-value="false" roleId="{{roleId}}">
                                                {{x.roleName}}
                                            </label>
                                        </div>
                                    </div>
                                    <!--<a href="javascript:void(0);" class="button-next  btn btn-info" onclick="blurUl()">选定</a>-->
                                </div>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">说明</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" ng-model="authoEdit.baseInfo.roleDescriptor"
                                    certus-an-limit-length="120"></textarea>
                            </div>
                        </div>
                    </div>
                </section>
                <section class="panel" style="margin-bottom:0;">
                    <header class="panel-heading add-heading">
                        操作授权
                    </header>
                    <div class="panel-body">
                        <div ng-repeat="au in baseAuthoritys" ng-init="code = au.authorityCode;createCode=au.authorityCode+'@@'+'create';
                             updateCode=au.authorityCode+'@@'+'update';
                             retrieveCode=au.authorityCode+'@@'+'retrieve';
                             deleteCode=au.authorityCode+'@@'+'delete';">
                            <div class="form-group customerForm">
                                <div ng-if="au.operation && au.operation != ''">
                                    <label class="col-sm-2 control-label">{{au.authorityName}}</label>
                                    <div class="col-sm-2" style="line-height: normal;">
                                        <div class="checkbox">
                                            <label>
                                                <input type="checkbox" class="line-check"
                                                    ng-model="$parent.authoEdit.authority[code]"
                                                    ng-click="allChangeFunc($event,$parent.authoEdit.authority[code])"
                                                    ng-true-value="true" ng-false-value="false"
                                                    authorityCode="{{au.authorityCode}}">
                                                全选
                                            </label>
                                        </div>
                                    </div>
                                    <div ng-if="au.operation.indexOf('C') > -1">
                                        <div class="col-sm-2" style="line-height: normal;">
                                            <div class="checkbox">
                                                <label>
                                                    <input type="checkbox"
                                                        ng-checked="$parent.authoEdit.authority[code]"
                                                        ng-model="$parent.authoEdit.authority[createCode]"
                                                        ng-click="createChangeFunc($event,$parent.authoEdit.authority[createCode])"
                                                        ng-model="createValue" authorityCode="{{createCode}}"> 增加
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                    <div ng-if="au.operation.indexOf('D') > -1">
                                        <div class="col-sm-2" style="line-height: normal;">
                                            <div class="checkbox">
                                                <label>
                                                    <input type="checkbox"
                                                        ng-checked="$parent.authoEdit.authority[code]"
                                                        ng-model="$parent.authoEdit.authority[deleteCode]"
                                                        ng-click="createChangeFunc($event,$parent.authoEdit.authority[deleteCode])"
                                                        ng-model="createValue" authorityCode="{{deleteCode}}"> 删除
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                    <div ng-if="au.operation.indexOf('U') > -1">
                                        <div class="col-sm-2" style="line-height: normal;">
                                            <div class="checkbox">
                                                <label>
                                                    <input type="checkbox"
                                                        ng-checked="$parent.authoEdit.authority[code]"
                                                        ng-model="$parent.authoEdit.authority[updateCode]"
                                                        ng-click="createChangeFunc($event,$parent.authoEdit.authority[updateCode])"
                                                        ng-model="createValue" authorityCode="{{updateCode}}"> 修改
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                    <div ng-if="au.operation.indexOf('R') > -1">
                                        <div class="col-sm-2" style="line-height: normal;">
                                            <div class="checkbox">
                                                <label>
                                                    <input type="checkbox"
                                                        ng-checked="$parent.authoEdit.authority[code]"
                                                        ng-model="$parent.authoEdit.authority[retrieveCode]"
                                                        ng-click="createChangeFunc($event,$parent.authoEdit.authority[retrieveCode])"
                                                        ng-model="createValue" authorityCode="{{retrieveCode}}"> 查看
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info"
                                onclick="disProStaffAndEidtAuthority();">返回</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-info"
                                ng-click="saveProjectAuthority()">提交</a>
                        </p>
                    </div>
                </section>

            </div>
        </div>
    </div>
</aside>

<!-- 成员选择列表（隐藏模式） -->
<section class="pdmiddle">
    <div class="panel pbox">
        <div class="panel-body">
            <div class="form-group pbline">
                <label class="control-label">查询（成员姓名）：</label>
                <input type="text" class="form-control" id="searchInputId" />
                <button type="button" class="btn btn-info searchButtom">
                    <i class="fa fa-search"></i>
                </button>
                <span class="layui-layer-setwin">
                    <a class="layui-layer-ico layui-layer-close layui-layer-close1" href="javascript:;"
                        onclick="pdclose();"></a>
                </span>
            </div>
            <div id="userDataGird" class="dlshouwen-grid-container"></div>
            <div id="userGridToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
        </div>
    </div>
    <div class="paper-bg" style="display: block;" onclick="pdclose();"></div>
</section>
<!--state overview end-->
<script type="text/javascript" src="js/autocomplete/jquery.autocomplete.js"></script>
<script src="js/proinfo/authority/edit-members-edit.js"></script>
<script>
    //    $(".slebox").on("focus", function () {
    //        $(".selbox-dvi").show();
    //    });
    // 获取焦点显示
    $(".perName").focus(function () {
        $(".pdmiddle").show();
    });

    function pdclose() {
        $(".pdmiddle").hide();
    };

    $(".slebox1").on("focus", function () {
        $(".selbox-dvi1").show();
    });

    $(".selbox-dvi1").blur(function () {
    })
</script>